import Layout from '@/layout'

export default {
    path: '/order',
    component: Layout,
    redirect: '/order/list',
    name: 'Order',
    meta: {
        title: '订单管理',
        icon: 'sidebar-menu'
    },
    children: [
        {
            path: 'list',
            name: 'OrderList',
            component: () => import(/* webpackChunkName: 'shop' */ '@/views/order/list'),
            meta: {
                title: '订单列表'
            }
        },
        {
            path: 'add',
            name: 'OrderAdd',
            component: () => import(/* webpackChunkName: 'shop' */ '@/views/order/add'),
            meta: {
                title: '创建订单',
                sidebar: false,
                activeMenu: '/order/list'
            }
        }
    ]
}
